#
# This fragment ...
#
# $Copyright: (c) 2008 Thomas Dejanovic $ 
#


targets ::
	@echo
	@echo "xilinx_ise.mak:"
	@echo "---------------"
	@echo
	@echo "  clean   -- delete all temporary files"
	@echo "  clobber -- delete all generated files"
	@echo
	@echo
#---------------------------------------------------------------------                                                              

XILINX_ISE_INCLUDED = 1

#---------------------------------------------------------------------
#
# 

XILINX_SETUP = /opt/Xilinx/10.1/ISE/settings32.sh

.PHONY: ise
ise :
	ise ${MODULE}.ise

.PHONY: pace
pace :
	(. ${XILINX_SETUP}; export DISPLAY=:0.; pace ${MODULE}.ucf)

.PHONY: floorplanner
floorplanner floorplan: ${MODULE}.ngd
	(. ${XILINX_SETUP}; floorplanner)

clobber::
	rm -rf xst _ngo _xmsgs ${MODULE}_xdb
	rm -rf *_summary.xml *_summary.html smartpreview.twr mppr_result.*
	rm -f _impact.* device_usage_statistics.html
	rm -f ${MODULE}.ntrc_log ${MODULE}.restore ${MODULE}.mppr ${MODULE}.prm
	rm -f ${MODULE_UPPER}.lso ${MODULE_UPPER}.xst ${MODULE_UPPER}.ngr
	rm -f ${MODULE_UPPER}_xst.xrpt ${MODULE_UPPER}.syr ${MODULE_UPPER}.stx
	rm -f ${MODULE_UPPER}_prev_built.ngd ${MODULE_UPPER}_ngdbuild.xrpt
	rm -f ${MODULE_UPPER}.ngd ${MODULE_UPPER}.bld ${MODULE_UPPER}_map.ngm
	rm -f ${MODULE_UPPER}.pcf ${MODULE_UPPER}_map.ncd ${MODULE_UPPER}_usage.xml
	rm -f ${MODULE_UPPER}_map.xrpt ${MODULE_UPPER}_map.mrp ${MODULE_UPPER}_map.map
	rm -f ${MODULE_UPPER}.ptwx ${MODULE_UPPER}.unroutes ${MODULE_UPPER}_pad.txt
	rm -f ${MODULE_UPPER}_pad.csv ${MODULE_UPPER}.pad ${MODULE_UPPER}.xpi
	rm -f ${MODULE_UPPER}_par.xrpt ${MODULE_UPPER}.par ${MODULE_UPPER}.ncd
	rm -f ${MODULE_UPPER}_guide.ncd ${MODULE_UPPER}.cmd_log ${MODULE_UPPER}.twx
	rm -f ${MODULE_UPPER}.twr ${MODULE_UPPER}.prj ${MODULE_UPPER}.ngc
	rm -f ${MODULE_UPPER}.ut ${MODULE_UPPER}.drc ${MODULE_UPPER}.bgn 
	rm -f ${MODULE_UPPER}.sig ${MODULE_UPPER}.mcs
	rm -f ${MODULE}.lso ${MODULE}.xst ${MODULE}.ngr
	rm -f ${MODULE}_xst.xrpt ${MODULE}.syr ${MODULE}.stx
	rm -f ${MODULE}_prev_built.ngd ${MODULE}_ngdbuild.xrpt
	rm -f ${MODULE}.ngd ${MODULE}.bld ${MODULE}_map.ngm
	rm -f ${MODULE}.pcf ${MODULE}_map.ncd ${MODULE}_usage.xml
	rm -f ${MODULE}_map.xrpt ${MODULE}_map.mrp ${MODULE}_map.map
	rm -f ${MODULE}.ptwx ${MODULE}.unroutes ${MODULE}_pad.txt
	rm -f ${MODULE}_pad.csv ${MODULE}.pad ${MODULE}.xpi
	rm -f ${MODULE}_par.xrpt ${MODULE}.par ${MODULE}.ncd
	rm -f ${MODULE}_guide.ncd ${MODULE}.cmd_log ${MODULE}.twx
	rm -f ${MODULE}.twr ${MODULE}.prj ${MODULE}.ngc
	rm -f ${MODULE}.ut ${MODULE}.drc ${MODULE}.bgn
	rm -f ${MODULE}.sig ${MODULE}.mcs
	rm -f ${MODULE}_build.xml ${MODULE}.chk ${MODULE}.cxt ${MODULE}.gyd
	rm -f ${MODULE}.jed ${MODULE}.log ${MODULE}.mfd ${MODULE}.nga
	rm -f ${MODULE}.pnx ${MODULE}.rpt ${MODULE}.tim ${MODULE}.tspec
	rm -f ${MODULE}.vm6 ${MODULE}.xml t[0-9]*.dat t[0-9]*.phd tmperr.err
	rm -rf ${MODULE}_html templates

#----------------------------------------------------------------------
# Local Variables:
# mode: makefile
# End:
# End of initial.mak
